package day20170930;

public class Student {
    //1.属性
    int age;
    String name;
    String address;

    //2.行为，方法，函数
    void  study() {
        System.out.println("学习");
    }
    void run(){
        System.out.println("跑步");
    }

    void printStu(){
        System.out.println(name);
    }

    public static void main(String[] args) {
        Student st = new Student();

        st.age = 18;
        st.name = "张三";

        st.run();
        st.study();
    }

}
